package cn.hesion.serialize;

import java.io.*;

public class Serialize implements Serializable {
    private int num= 1390;

    public static void main(String[] args)  {

        try {
            FileOutputStream fos = new FileOutputStream("se.dat");
            ObjectOutputStream oos = new ObjectOutputStream(fos);
            Serialize serialize = new Serialize();
            oos.writeObject(serialize);
            oos.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
